<?php
if(!$_COOKIE['SDSPortalsesionID']) {
//sleep(1);
setcookie ( 'url', $_SERVER['REQUEST_URI']); 
header('location: login.php');
} ?>